package ysc.cqnu.operdb.serviceImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import ysc.cqnu.operdb.entity.ResultData;
import ysc.cqnu.operdb.mapper.ZhuoSeMapper;
import ysc.cqnu.operdb.service.UpdateZhuoSeInfoNoImgService;

@Service
public class UpdateZhuoSeInfoNoImgServiceImpl implements UpdateZhuoSeInfoNoImgService {
    @Autowired
    private ResultData resultData;
    @Autowired
    private ZhuoSeMapper zhuoSeMapper;
    @Override
    public ResultData updateZhuoSeInfoNoImgService(String zhuose, String visualize, String purpose, String theSite, String bfDescribe, String id) {
        try {
            zhuoSeMapper.updateZhuoseInfoNoImg(visualize,purpose,theSite,bfDescribe,id);
            resultData.flag="ZhuoseInfoSuccess";
            resultData.data=null;
        } catch (Exception e) {
            e.printStackTrace();
            resultData.flag="ZhuoseInfoFail";
            resultData.data=null;
            return resultData;
        }
        return resultData;
    }
}
